package lab02.test04;

import java.util.Scanner;

public class Test04 {
    public static void main(String[] args) {
        Staff staff = new Staff();

        System.out.println("请输入员工姓名、号码、基本薪水等信息：");

        System.out.println("姓名：");
        Scanner sc = new Scanner(System.in);
        String name = sc.nextLine();
        staff.setName(name);

        System.out.println("号码：");
        Scanner sc2 = new Scanner(System.in);
        String num  = sc2.nextLine();
        staff.setNum(num);

        System.out.println("基本工资");
        Scanner sc3 = new Scanner(System.in);
        double  baseSalary= sc2.nextDouble();
        staff.setBaseSalary(baseSalary);

        staff.getBaseSalary();
        staff.setAddSalary();

        staff.sumSalary();

        System.out.println(staff.toString());






    }
}
